package com.accelstack.cmp.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * JPA配置类
 */
@Configuration
@EnableJpaRepositories(basePackages = "com.accelstack.cmp.repository")
@EnableTransactionManagement
@EnableJpaAuditing
public class JpaConfig {
    
    // Spring Boot会自动配置EntityManagerFactory和TransactionManager
    // 这里只需要启用JPA Repository扫描、事务管理和审计功能
}

